package com.katze.common.http;

import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;

/**
 * 说  明：
 * 作  者：zf.zeng
 * 日  期：2020-11-15 (星期日)
 **/
public class TrustAnyTrustManager implements X509TrustManager {

    public void checkClientTrusted(X509Certificate[] chain, String authType) {
        //trust anything
    }

    public void checkServerTrusted(X509Certificate[] chain, String authType) {
        //trust anything
    }

    public X509Certificate[] getAcceptedIssuers() {
        return new X509Certificate[]{};
    }
}
